<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:id="@+id/videoPlayerContainer"
    android:background="@android:color/black"
    android:orientation="vertical">

    <androidx.cardview.widget.CardView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent"
        app:layout_constraintBottom_toBottomOf="parent"
        app:cardBackgroundColor="@android:color/black"
        android:id="@+id/videoPlayerCardView"
        app:cardCornerRadius="8dp"
        app:cardElevation="0dp">

        <com.google.android.exoplayer2.ui.AspectRatioFrameLayout
            android:id="@+id/exoPlayerFrameLayout"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_gravity="center"
            app:resize_mode="fixed_height">

            <com.google.android.exoplayer2.ui.PlayerView
                android:id="@+id/exoPlayerView"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                app:controller_layout_id="@layout/exo_player_custom_controls"
                app:fastforward_increment="10000"
                app:resize_mode="fit"
                app:rewind_increment="10000"
                app:scrubber_dragged_size="25dp"
                app:show_buffering="when_playing"
                app:show_timeout="3000" />
        </com.google.android.exoplayer2.ui.AspectRatioFrameLayout>


        <include layout="@layout/fragment_video_player_placeholder"/>
        <include layout="@layout/error_screen_video_player"/>

        <RelativeLayout
            android:id="@+id/root_layout"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:layout_weight="1"
            app:layout_constraintBottom_toBottomOf="parent"
            app:layout_constraintTop_toTopOf="parent">

            <RelativeLayout
                android:id="@+id/gesture_volume_layout"
                android:layout_width="120dp"
                android:layout_height="100dp"
                android:layout_centerInParent="true"

                android:gravity="center"
                android:visibility="gone">

                <ImageView
                    android:id="@+id/gesture_iv_player_volume"
                    android:layout_width="50dp"
                    android:layout_height="50dp"
                    android:layout_centerHorizontal="true"

                    app:srcCompat="@drawable/ic_volume" />

                <TextView
                    android:id="@+id/gesture_tv_volume_percentage"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_below="@id/gesture_iv_player_volume"
                    android:layout_centerHorizontal="true"
                    android:gravity="right"
                    android:text="80%"
                    android:textColor="#ffececec" />
            </RelativeLayout>

            <RelativeLayout
                android:id="@+id/gesture_bright_layout"
                android:layout_width="120dp"
                android:layout_height="100dp"
                android:layout_centerInParent="true"

                android:gravity="center"
                android:visibility="gone">

                <ImageView
                    android:id="@+id/gesture_iv_player_bright"
                    android:layout_width="50dp"
                    android:layout_height="50dp"
                    android:layout_centerHorizontal="true"

                    app:srcCompat="@drawable/ic_brightness" />

                <TextView
                    android:id="@+id/gesture_tv_bright_percentage"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_below="@id/gesture_iv_player_bright"
                    android:layout_centerHorizontal="true"
                    android:gravity="right"
                    android:text="80%"
                    android:textColor="#ffececec" />
            </RelativeLayout>

            <RelativeLayout
                android:id="@+id/gesture_progress_layout"
                android:layout_width="120dp"
                android:layout_height="100dp"
                android:layout_centerInParent="true"

                android:gravity="center"
                android:visibility="gone">

                <ImageView
                    android:id="@+id/gesture_iv_progress"
                    android:layout_width="50dp"
                    android:layout_height="50dp"
                    android:layout_centerHorizontal="true" />

                <TextView
                    android:id="@+id/gesture_tv_progress_time"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_below="@id/gesture_iv_progress"
                    android:layout_centerHorizontal="true"
                    android:gravity="right"
                    android:text="00:35/24:89"
                    android:textColor="#ffececec" />
            </RelativeLayout>
        </RelativeLayout>
    </androidx.cardview.widget.CardView>



</androidx.constraintlayout.widget.ConstraintLayout>